package com.sleepapp.utils;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author ziluxike
 * @since 2025/5/26 10:33
 * 成功 200
 * 失败 201
 * 登录过期 401
 */
@Getter
@AllArgsConstructor
public enum ResCode {
    SUCCESS(200, "操作成功"),
    FAIL(201, "操作失败"),
    UNAUTHORIZED(401, "登录过期"),
    USERNAME_OR_PASSWORD_ERROR(201, "用户名或密码错误,请检查后重试!"),
    REQUEST_PARAM_ERROR(201, "请求参数错误,请检查后重试!");

    private final int code;
    private final String message;
}
